package com.ntschy.sys.service.impl;

import cn.hutool.core.util.IdUtil;
import com.ntschy.sys.entity.dataobject.SysOperLog;
import com.ntschy.sys.mapper.SysOperLogMapper;
import com.ntschy.sys.service.ISysOperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ezreal_geng
 */
@Service
public class SysOperLogServiceImpl implements ISysOperLogService {

    @Autowired
    private SysOperLogMapper operLogMapper;

    @Override
    public int addOperLog(SysOperLog operLog) {
        operLog.setOperId(IdUtil.fastUUID());
        return operLogMapper.insert(operLog);
    }
}
